<?php if (!defined('BASEPATH')) exit ('No direct script access allowed');
class Setting_model extends CI_Model
{
	function __construct()
	{
		parent::__construct();
	}
	
	function getAll()
	{
		return $this->db->get('setting');
	}

	function getLog()
	{
		$this->db->select("access_log.id as id, username, ip, datetime");
		$this->db->join('users', 'users.id = access_log.user_id');
		return $this->db->get('access_log');
	}
	
}

/* End of file setting_model.php */
/* Location: ./application/models/setting_model.php */